import 'package:fluttertoast/fluttertoast.dart';

class ToastMixin {
  void showToast(String? msg,
      {Toast toastLenth = Toast.LENGTH_SHORT,
      ToastGravity gravity = ToastGravity.CENTER,
      int timeInIos = 1}) {
    Fluttertoast.showToast(
      msg: msg ?? "",
      toastLength: toastLenth,
      timeInSecForIosWeb: timeInIos,
    );
  }

  void showShortToast(String msg){
    showToast(msg);
  }

  void showLongToast(String msg){
    showToast(msg,toastLenth: Toast.LENGTH_LONG);
  }

}
